import request from "@/utils/request";

// 分页获取订单
export function getOrderListApi(params: any) {
  return request({
    url: "/order/list",
    method: "get",
    params,
  });
}

// 更改订单状态
export function changeOrderStatusApi(data: any) {
  return request({
    url: "/order/changeStatus",
    method: "post",
    data,
  });
}

// 订单明细获取
export const getOrderItemApi = (orderId: any) => {
  return request({
    url: `/order_item`,
    method: "get",
    params: { orderId },
  });
};
